package main

import "flag"

var role = flag.String("r", "consumer", "role[consumer;producer]")

func main() {
	flag.Parse()
	if *role == "consumer" {
		consumer()
		return
	} else if *role == "producer" {
		producer()
	}
}
